#define _CRT_SECURE_NO_WARNINGS 1
#include"vector.h"
#include<list>
namespace ly
{
	void test01()
	{
		vector<int>i;
		i.push_back(1);
		i.push_back(2);
		i.push_back(3);
		i.push_back(4);
		i.pop_back();
		i.insert(i.begin() + 2, 40);
		cout << *(i.insert(i.begin(), 0)) << endl;
		i.push_back(5);
		print_vector(i);
	}

	void test02()
	{
		//vector<int>i;
		//i.push_back(1);
		//i.push_back(2);
		//i.push_back(3);
		//i.push_back(4);
		//i.push_back(5);
		////i.erase(i.begin() + 1);
		//
		//print_vector(i);

		/*int i = int();
		int j = int(3);
		cout << i << " " << j << endl;*/
	}

	void test03()
	{
		vector<int>i;
		i.push_back(1);
		i.push_back(2);
		i.push_back(3);
		i.push_back(4);
		i.push_back(5);
		/*i.push_back(6);
		i.resize(5,1);
		i.reserve(20);
		i.resize(10, 1);
		i.resize(25, 1);
		cout << i.capacity() << endl;
		print_vector(i);*/

		vector<int>j(i);
		print_vector(j);
		vector<int>k;
		k.push_back(1);
		k.push_back(1);
		k.push_back(1);
		k.push_back(1);
		k.push_back(1);
		print_vector(k);
		j = k;
		print_vector(j);

		string str("such nice day!");
		print_container(str);
	}

	void test04()
	{
		list<int>a(3, 1);
		vector<int>i(a.begin(), a.end());
		print_vector(i);
	}

	void test05()
	{
		vector<int>i(5, 9);
		print_vector(i);
	}

	void test06()
	{
		vector<string>str(4);
		str[0] = "you";
		str[1] = "are";
		str[2] = "my";
		str[3] = "lover";
		vector<string>str1(str);
		print_vector(str1);
	}
}

int main()
{
	ly::test06();
	return 0;
}